package cn.xiaohui;
import java.sql.Date;
import java.util.HashSet;
import java.util.Scanner;

public class UserRegister {
	public static HashSet<User> USER_DATA= new HashSet<User>();
	public static void main(String[] args) {
		intitData();
		Scanner scanner =new Scanner(System.in);
		System.out.println("请输入用户名");
		String userName =scanner.nextLine();
		System.out.println("请输入密码");
		String password=scanner.nextLine();
		System.out.println("请重复输入密码");
		String repassword=scanner.nextLine();
		System.out.println("出生日期");
		String brithday=scanner.nextLine();
		System.out.println("手机号码");
		String telNumber =scanner.nextLine();
		System.out.println("电子邮箱");
		String email =scanner.nextLine();
		CheckInfo checkInfo =new CheckInfo(USER_DATA);
		String result =checkInfo.checkAction(userName,password,repassword,brithday,telNumber,email);
		System.out.println("注册结果"+result);
	}
	private static void intitData() {
		// TODO Auto-generated method stub
		User user =new User("小小","小小,123",new Date(0),"3209913907","3209913907@qq.com");
		User user1 =new User("哈哈","hh,123",new Date(0),"1330430710","1330430710@qq.com");
		USER_DATA.add(user);
		USER_DATA.add(user1);
	}
}